import request from '@/utils/request'

// 查询wbs清单变更明细列表
export function listBgBaBgDetail(query) {
  return request({
    url: '/jl_bg/bgBaBgDetail/list',
    method: 'get',
    params: query
  })
}

// 查询wbs清单变更明细详细
export function getBgBaBgDetail(detailId) {
  return request({
    url: '/jl_bg/bgBaBgDetail/' + detailId,
    method: 'get'
  })
}

// 新增wbs清单变更明细
export function addBgBaBgDetail(data) {
  return request({
    url: '/jl_bg/bgBaBgDetail',
    method: 'post',
    data: data
  })
}

// 修改wbs清单变更明细
export function updateBgBaBgDetail(data) {
  return request({
    url: '/jl_bg/bgBaBgDetail',
    method: 'put',
    data: data
  })
}

// 删除wbs清单变更明细
export function delBgBaBgDetail(detailId) {
  return request({
    url: '/jl_bg/bgBaBgDetail/' + detailId,
    method: 'delete'
  })
}
